#include<stdio.h>
#include <stdio.h>
int expression(char *s){
	int a=0,b=0,t=0;
	char x='+';
	do{
		if(x=='+')
		{
			b=0;
			x=s[t++];
			do
			{
				b*=10;
				b+=x-'0';
				x=s[t++];
			}while(x>='0'&&x<='9');
			a+=b;
		}
		else if(x=='-')
		{
			b=0;
			x=s[t++];
			do
			{
				b*=10;
				b+=x-'0';
				x=s[t++];
			}while(x>='0'&&x<='9');
			a-=b;
		}
	}while(x!='=');
	return a;
}

int main()
{
	char s[101]={0};
	scanf("%s",s);
	printf("%d",expression(s));
	return 0;
 } 
